package mapper

import (
	"administrator/app/model"
	"database/sql"
)

type UserMapper struct {
	SelectUser func(any) (*model.UserModel, error)

	UserInfo func(any) (*model.UserModel, error)

	UserOrg   func(any) ([]int, error)
	UserRoles func(any) ([]*model.UrInfo, error)

	GetUserDefaultOrgInfo func(any) (*model.UserModel, error)

	GetOrgDefaultRole func(any) (int, error)

	UpdateOrgRole  func(any, *sql.Tx) error
	UpdateUserRole func(any, *sql.Tx) error

	UpdateUserOR func(any) error

	UpdateUserHead func(any) error

	UpdateBaseInfo func(any) error
}
